package cn.huyanbing.middleware.nacos;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author huyanbing
 * @create 2023/4/5 9:32 上午
 */
@Configuration
@EnableAsync
@SpringBootApplication(exclude = {DataSourceHealthContributorAutoConfiguration.class, DataSourceAutoConfiguration.class, RedisAutoConfiguration.class})
@EnableTransactionManagement(proxyTargetClass = true)
@EnableFeignClients(basePackages = {"cn.huyanbing.middleware"})
@ComponentScan(basePackages = {"cn.huyanbing.middleware"})
public class NacosResearchApplication {

    public static void main(String[] args) {
        System.setProperty("sun.net.http.allowRestrictedHeaders", "true");
        SpringApplication.run(NacosResearchApplication.class, args);
    }

}
